JCAT.Class.CheckDependClasses(['JCAT.MVC.UICtrl','JCAT.MVC.UICtrl.IUICtrl','JCAT.MVC.UICtrl.IForm'],'JCAT.MVC.UICtrl.TextBase') ;


// 创建抽象类
JCAT.Class.CreateAbstractClass('JCAT.MVC.UICtrl.TextBase') ;

// 继承
JCAT.Class.Inherit(JCAT.MVC.UICtrl.TextBase,JCAT.MVC.UICtrl) ;

// 实现 IForm 接口
JCAT.Class.Inherit(JCAT.MVC.UICtrl.TextBase,JCAT.MVC.UICtrl.IForm,'IFormConstruct') ;

// 定义常量
JCAT.MVC.UICtrl.TextBase.TXT_BYTE = 1 ;
JCAT.MVC.UICtrl.TextBase.TXT_CHAR = 2 ;

// 构造函数
JCAT.MVC.UICtrl.TextBase.prototype.TextBaseConstruct = function (sName,sID,sUIName)
{
	this._nVDTxtType = JCAT.MVC.UICtrl.TextBase.TXT_BYTE ;
	this.UICtrlConstruct(sName,sID,sUIName) ;
	this.IFormConstruct() ;
}

JCAT.MVC.UICtrl.TextBase.prototype.GetVDTxtType = function ()
{
	return this._nVDTxtType ;
}

JCAT.MVC.UICtrl.TextBase.prototype.SetVDTxtType = function (nTxtType)
{
	return this._nVDTxtType = nTxtType ;
}


JCAT.MVC.UICtrl.TextBase.prototype.SetData = function (sValue)
{
	this._wndInput.value = Value ;
}

JCAT.MVC.UICtrl.TextBase.prototype.GetData = function ()
{
	return this._wndInput.value ;
}

JCAT.MVC.UICtrl.TextBase.prototype.GetDataLength = function ()
{
	return (this.GetVDTxtType()==JCAT.MVC.UICtrl.TextBase.TXT_BYTE) ? 
			JCAT.String.GetStringByteLen(this._wndInput.value) :
			this._wndInput.value.length ;
}